package TUILayer;


/**
 * Write a description of class CheckOutTUI here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class CheckOutTUI
{
    // instance variables - replace the example below with your own
    private int x;

    /**
     * Constructor for objects of class CheckOutTUI
     */
    public CheckOutTUI()
    {
        // initialise instance variables
        
    }

   public void start()
    {
        chechOutCtr = new checkOutCtr();
        checkOutMenu();
    }
    
    public void checkOutMenu()
    {   
        boolean exit = false;
        while(!exit)
        {
            //show menu and return the user's choise
            int choise =   writeCheckOutMenu();
            switch(choise){
                case 1:
                DVD();
                break;
        
                case 2:
                createDVD();
                break;
    
                case 3:
                createCopy();
                break;
        
                case 4:
                deleteDVD();
                break;
        
                case 5:
                listAllDvds();
                break;
        
                default:
                exit = true;
            }
        }
    }
    /*
   
     */
    
    private int writecheckOutMenu()
    {
           // creates an object keyboard to read data from the keyboard
            Scanner keyboard = new Scanner(System.in);
            System.out.println("\f *** DVD Menu ***");
            System.out.println(" (1) Show DVD information");
            System.out.println(" (2) Create DVD description");
            System.out.println(" (3) Create DVD specimen");
            System.out.println(" (4) Delete DVD");
            System.out.println(" (5) Show current DVD list");
            System.out.println(" (6) Return");
            System.out.print("\n Make your choise: ");
            
            int choise = keyboard.nextInt();
            return choise;
}
